
<template>
  <div class="content">
    <div class="driver">
      <div class="driverImg"></div>
      <div class="driverDet">
        <span>王师傅</span>
        <span>五星司机</span>
        <div class="driverTips">
          <em>面包车</em>
          <em>100单</em>
          <em>陕A***12</em>
        </div>
      </div>
      <div class="driverPhone">
        <span class="phoneIcon"></span>
        <span class="colIcon"></span>
      </div>
    </div>
    <div class="journey">
      <div class="journeyItem">
        <span class="journeyKey">车型</span>
        <div class="journeyVal">面包车</div>
      </div>
      <div class="journeyItem">
        <span class="journeyKey">用车时间</span>
        <div class="journeyVal"><span>海洋大厦</span><p>西安市凤城二路</p><p>123154897343</p></div>
      </div>
    </div>
    <div class="placeOrder">再次下单</div>
  </div>
</template>

<script>
export default {
  components: {
  },
  onLoad () {
    wx.setNavigationBarTitle({
      title: '订单详情'
    })
  }
}
</script>

<style scoped>
.content{
  width: 710rpx;
  margin: 0 auto;
}
  .driver{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35rpx 0 84rpx 0;
    border-bottom: 1rpx solid #e3e3e3;
    position: relative;
  }
  .driverImg{
    width: 122rpx;
    height: 122rpx;
    border-radius: 50%;
    background-color: dimgray;
  }
  .driverDet{
    flex: 1;
  }
  .driverDet span:nth-child(1){
    font-size: 28rpx;
    color: #1a2636;
    padding: 0 30rpx;
  }
.driverDet span:nth-child(2){
  font-size: 20rpx;
  color: #f7443f;
}
.driverPhone span{
  height: 44rpx;
  display: inline-block;
}
  .phoneIcon{
    width: 44rpx;
    background: url("~static/img/phone.png") no-repeat center/cover;
  }
  .colIcon{
    width: 48rpx;
    background: url("~static/img/heart.png") no-repeat center/cover;
    margin-left: 24rpx;
  }
  .driverTips{
    position: absolute;
    bottom: 60rpx;
  }
  .driverTips em{
    line-height: 36rpx;
    padding: 0 26rpx;
    border: 1rpx solid #e8473d;
    border-radius: 60rpx;
    font-size: 20rpx;
    color: #e8473d;
    display: inline;
    margin: 0 12rpx;
  }
  .journey{
     padding: 60rpx 0 178rpx 0;
   }
.journeyItem{
  display: flex;
  font-size: 28rpx;
}
.journeyKey{
  text-align: justify;
  width: 135rpx;
  color: #c2c2c2;
}
.journeyKey::after {
  width: 100%;
  height: 0;
  margin: 0;
  display: inline-block;
  overflow: hidden;
  content: '';
}
.journeyVal{
  margin-left: 52rpx;
  color: #1a2634;
  margin-bottom: 45rpx;
}
.journeyVal span{
  padding-bottom: 15rpx;
}
.journeyVal p{
  color: #c2c2c2;
}
  .placeOrder{
    width: 300rpx;
    line-height: 60rpx;
    text-align: center;
    color: #fff;
    background-color: #ed493d;
    font-size: 28rpx;
    border-radius: 50rpx;
    margin: 0 auto;
  }
</style>
